package com.linkstec.Callback;

public class A {
	public static void main(String[] args) {
		B b = new B();
		@SuppressWarnings("unused")
		Call call = new Call();
//		b.send(call);
		b.send(new Callback() {
			
			@Override
			public void onCompletion() {
				System.out.println("fuck you");
				
			}
		});
		System.out.println("异步调用");
	}
}
class Call implements Callback {

	@Override
	public void onCompletion() {
		System.out.println("nihao");
		
	}
	
}